package com.mongodb.controller;

import com.alibaba.fastjson.JSONObject;
import com.mongodb.document.geoJson.CustomGeoJson;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.geo.GeoJsonPoint;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author zhangbowen
 * @date 2019/5/9
 **/
@Data
@Document(collection = "test")
@ApiModel(value = "测试")
public class Test {
    @Id
    private String id;
    @ApiModelProperty(value = "geoJson")
    private CustomGeoJson geometry;


}
